﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Principal/Inicial.Master" AutoEventWireup="true" CodeBehind="Rol.aspx.cs" Inherits="Biciq.Web.UI.Seguridades.Rol" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxDataView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxMenu" tagprefix="dx" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<%@ Register Src="../Controles/WUCMensajes.ascx" TagName="WUCMensajes" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" 
        HeaderText="Roles del Sistema" Width="100%" 
        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
        GroupBoxCaptionOffsetY="-22px" 
        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
        <ContentPaddings PaddingBottom="5px" PaddingLeft="2px" PaddingTop="5px" />
        <HeaderStyle Font-Names="Century Gothic" Font-Size="Large" Height="23px" >
        <Paddings PaddingBottom="0px" PaddingLeft="3px" PaddingTop="0px" />
        </HeaderStyle>
        <PanelCollection>
            <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                <table class="style1">
                    <tr>
                        <td>
                            <dx:ASPxMenu ID="ASPxMenu1" runat="server" AutoSeparators="RootOnly" 
                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                                CssPostfix="BlackGlass" ShowPopOutImages="True" 
                                SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                <Items>
                                    <dx:MenuItem NavigateUrl="~/Seguridades/MantenimientoRol.aspx" Text="Nuevo">
                                        <Image ToolTip="Nuevo" Url="~/img/Add.png" Width="16px">
                                        </Image>
                                    </dx:MenuItem>
                                    <dx:MenuItem NavigateUrl="~/Principal/Inicial.aspx" Text="Salir" 
                                        ToolTip="Salir">
                                        <Image ToolTip="Salir" Url="~/img/Close.png" Width="16px">
                                        </Image>
                                    </dx:MenuItem>
                                </Items>
                                <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                                </LoadingPanelImage>
                                <RootItemSubMenuOffset FirstItemX="-1" LastItemX="-1" X="-1" />
                                <ItemStyle DropDownButtonSpacing="11px" ToolbarDropDownButtonSpacing="8px" 
                                    ToolbarPopOutImageSpacing="8px" />
                                <SubMenuStyle GutterWidth="0px" />
                            </dx:ASPxMenu>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" 
                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                OnAfterPerformCallback="ASPxGridView1_AfterPerformCallback" 
                                OnCustomButtonCallback="ASPxGridView1_CustomButtonCallback">
                                <ClientSideEvents CustomButtonClick="function(s, e) {
if (e.buttonID == &quot;eliminar&quot;) {
 e.processOnServer = confirm(&quot;Está seguro de eliminar el registro seleccionado?&quot;);
}
if (e.buttonID == &quot;editar&quot;) {
e.processOnServer = true;

}
}" />
                                <Columns>
                                    <dx:GridViewCommandColumn ButtonType="Image" ShowInCustomizationForm="True" 
                                        VisibleIndex="4">
                                        <ClearFilterButton Visible="True">
                                        </ClearFilterButton>
                                        <CustomButtons>
                                        
                                            <dx:GridViewCommandColumnCustomButton ID="editar" Text="Editar"  >
                                                <Image ToolTip="Editar" Url="~/img/editar.png" Width="32px">
                                                

                                                </Image>
                                            </dx:GridViewCommandColumnCustomButton>
                                            <dx:GridViewCommandColumnCustomButton  ID="eliminar" Text="Eliminar"  >

                                                <Image AlternateText="Eliminar" ToolTip="Eliminar"   
                                                           Url="~/img/borrar.png" Width="32px">
                                                           

                                                </Image>
                                            </dx:GridViewCommandColumnCustomButton>
                                        </CustomButtons>
                                    </dx:GridViewCommandColumn>
<dx:GridViewDataTextColumn FieldName="id" ShowInCustomizationForm="True" Caption="Id" VisibleIndex="0" 
                                        Visible="False"></dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Nombre" FieldName="nombre" 
                                        ShowInCustomizationForm="True" VisibleIndex="1">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Estado" FieldName="estado" 
                                        ShowInCustomizationForm="True" VisibleIndex="3">
                                    </dx:GridViewDataTextColumn>
                                </Columns>
                                <Settings ShowFilterRow="True" />
                                <Images SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                    <LoadingPanelOnStatusBar Url="~/App_Themes/BlackGlass/GridView/gvLoadingOnStatusBar.gif">
                                    </LoadingPanelOnStatusBar>
                                    <LoadingPanel Url="~/App_Themes/BlackGlass/GridView/Loading.gif">
                                    </LoadingPanel>
                                </Images>
                                <ImagesFilterControl>
                                    <LoadingPanel Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                    </LoadingPanel>
                                </ImagesFilterControl>
                                <Styles CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                                    CssPostfix="BlackGlass">
                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                    </Header>
                                </Styles>
                                <StylesEditors>
                                    <CalendarHeader Spacing="1px">
                                    </CalendarHeader>
                                    <ProgressBar Height="25px">
                                    </ProgressBar>
                                </StylesEditors>
                            </dx:ASPxGridView>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </dx:PanelContent>
        </PanelCollection>
    </dx:ASPxRoundPanel>
     <asp:UpdatePanel ID="UpdatePanelMensaje" runat="server">
        <ContentTemplate>
            <asp:LinkButton ID="LinkButtonMessage" runat="server"></asp:LinkButton>
           <asp:ModalPopupExtender ID="MessagePopup" runat="server" TargetControlID="LinkButtonMessage"
                BackgroundCssClass="modalBackground" PopupControlID="PanelMensaje" OkControlID="LinkButtonCloseMessage">
            </asp:ModalPopupExtender>


            <asp:Panel ID="PanelMensaje" runat="server" Width="75%" Style="display: none;">
                <asp:LinkButton ID="LinkButtonCloseMessage" runat="server" Font-Bold="True" Style="font-size: 7px;
                    color: #FFFFFF;" Text="i"></asp:LinkButton>
                <uc1:WUCMensajes ID="WUCMensaje" runat="server" />
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
  

</asp:Content>
